#!/bin/bash -il
 
#项目打包
mvn clean install package '-Dmaven.test.skip=true'

netstat -anp|grep 8811|awk '{printf $7}'|cut -d/ -f1 |xargs kill -9 || true
nohup java -jar /var/java/project/spring-demo/target/demo-0.0.1-SNAPSHOT.jar > /var/java/project/spring-demo/log.log 2>&1 &

cat /var/java/project/spring-demo/log.log